home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 445_01 / alert10 / alert.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-04  |  1.4 KB  |  46 lines

  1. /**************************************************************************/
  2. /* Header:  Cooper/3425 Chestnut Ridge Rd., Grantsville, MD 21536-9801    */
  3. /**************************************************************************/
  4.  
  5.  
  6. #define GR_ERROR 10
  7. #define SETUP_COLOR LIGHTBLUE
  8. #define LINE_BEGINNING 20
  9. #define MAXCYCLECOUNT 15
  10. #define LINE1HT 8
  11. #define LINE2HT 5
  12. #define MAXYHT 400
  13. #define DELAY 1600
  14. #define DELTA_X 140
  15. #define DELTA_Y 33
  16. #define PIXEL_COLOR YELLOW
  17. #define HEADS_OR_TAILS 2
  18. #define RANDOM 3
  19. #define LOOP 1
  20.  
  21. //when to dial ( 3 out of 15? )
  22. #define DIALPHONE 11
  23.  
  24. //Keypress to exit
  25. #define EXITVALUE '}'
  26.  
  27. #define WRITE_1ST_LINE write_text( LINE_BEGINNING, y_ht, LINE1HT, txt1 )
  28. #define WRITE_2ND_LINE write_text( LINE_BEGINNING + DELTA_X, y_ht + DELTA_Y, LINE2HT, txt2 )
  29. #define ERASE_LINE1 setcolor( getbkcolor() ); WRITE_1ST_LINE
  30. #define ERASE_LINE2 setcolor( getbkcolor() ); WRITE_2ND_LINE
  31. #define WRITE_LINE1 setcolor( line1color ); WRITE_1ST_LINE
  32. #define WRITE_LINE2 setcolor( LIGHTMAGENTA ); WRITE_2ND_LINE
  33.  
  34. const char Msg1[] = "Intrusion Alert!",
  35.        Msg2[] = "CALLING POLICE";
  36.  
  37.  
  38. typedef enum { OFF, ON } FLAGS;
  39. FLAGS SoundFlag;
  40.  
  41. /********************************prototypes*********************************/
  42.  
  43. void graphics_setup( int background_color );
  44. void write_text( int x_coord, int y_coord, int type_size, char* text );
  45. void FlashCycle();
  46.